package com.murray.shop.background.pojo;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/8/20
 * @Time 0:01
 * @Descprition 权限表
 */
public class Node {

    private Integer nodeId;
    private String title;
    private Integer pid;
    /**
     * 菜单跳转的URL
     */
    private String url;

    /**
     * 由于node表的集合表，这个类里面装的是大
     * 权限，这个属性用来装大权限中的小权限
     */
    private List<Node> nodeListChild;

    @Override
    public String toString() {
        return "Node{" +
                "nodeId=" + nodeId +
                ", title='" + title + '\'' +
                ", pid=" + pid +
                ", url='" + url + '\'' +
                ", nodeListChild=" + nodeListChild +
                '}';
    }

    public List<Node> getNodeListChild() {
        return nodeListChild;
    }

    public void setNodeListChild(List<Node> nodeListChild) {
        this.nodeListChild = nodeListChild;
    }

    public Integer getNodeId() {
        return nodeId;
    }

    public void setNodeId(Integer nodeId) {
        this.nodeId = nodeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Node() {
    }

    public Node(Integer nodeId, String title, Integer pid, String url) {
        this.nodeId = nodeId;
        this.title = title;
        this.pid = pid;
        this.url = url;
    }
}
